<?php
require(dirname(__FILE__)."/../inc/common.inc.php");
header("Content-Type:text/html;charset=utf-8"); 
admin(0);
$ssion_array=explode(',',$adminarr['u_ssion']);
?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="js/html5.js"></script>
<script type="text/javascript" src="js/respond.min.js"></script>
<script type="text/javascript" src="js/PIE_IE678.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="css/H-ui.css"/>
<link type="text/css" rel="stylesheet" href="css/H-ui.admin.css"/>
<link type="text/css" rel="stylesheet" href="font/font-awesome.min.css"/>
<!--[if IE 7]>
<link href="font/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->
<title>我的桌面</title>
	<script language="JavaScript"> 
function myrefresh(){ 
window.location.reload(); 
} 
setTimeout('myrefresh()',51000); //指定1秒刷新一次 
</script> 
<style>
.panel{ background-color:#fff; border:solid 1px transparent}
	.panel-header{ border-bottom:solid 1px transparent; padding:8px 15px; font-size:14px; font-weight:700}/*面板标题*/
	.panel-body{ padding:15px}/*面板内容*/
	.panel-footer{background-color: #f5f5f5;border-top: 1px solid #ddd;padding:5px 20px}/*面板页脚*/
/*默认面板*/
.panel-default{border-color:#ddd;}
.panel-default > .panel-header{ border-color:#ddd; background-color:#f5f5f5; color:#444}
 
/*主要面板*/
.panel-primary{border-color:#5a98de;}
.panel-primary > .panel-header{ border-color:#5a98de; background-color:#5a98de; color:#fff}
 
/*次要面板*/
.panel-secondary{border-color:#3bb4f2;}
.panel-secondary > .panel-header{ border-color:#3bb4f2; background-color:#3bb4f2; color:#fff}
 
/*成功面板*/
.panel-success{border-color:#5eb95e;}
.panel-success > .panel-header{ border-color:#5eb95e; background-color:#5eb95e; color:#fff}
 
/*警告面板*/
.panel-warning{border-color:#f37b1d;}
.panel-warning > .panel-header{ border-color:#f37b1d; background-color:#f37b1d; color:#fff}
 
/*危险面板*/
.panel-danger{border-color:#dd514c;}
.panel-danger > .panel-header{ border-color:#dd514c; background-color:#dd514c; color:#fff}

.lee_box{width:80px; height:70px; border:1px #eaeaea solid; display:block; padding:1em 0 0 0; text-align:center; color:#2F4E9A; float:left; margin:12px 12px 0 0};

</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body style="background:#F1F1F1">
<?php
if ($action=='reg') {
	$dbrs = $db->get_one("select * from {$pre}news where id='$uid' and yz='1'");
		if(!$dbrs){
			showerr('查询失败');
		}
?>
<table class="table table-bg">
     <tr>
    	<td bgcolor="#FFFFFF" class="bgcolor"><?=$dbrs['content']?><br><?=date("Y-m-d H:i:s",$dbrs['time'])?></td>
    </tr>
 
</table>

<?php
}else{
?>
<div class="pd-20" style="padding-top:20px;">
	
    <div class="panel panel-default">
	<div class="panel-header">登陆信息</div>
	<div class="panel-body">
    <p class="f-20 text-success">欢迎使用<?=$webdb['title']?></p>
    <p>登录次数：<?=$adminarr['u_logincontent']?> </p>
    <p>本次登录IP：<?=$adminarr['u_lastip']?>  本次登录时间：<?=date("Y-m-d H:i:s",$adminarr['u_lasttime'])?></p>
    </div>
    


 
  
</div>
<footer>
  <?=$webdb['footer']?>
</footer>
<?php
}
?>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/Validform_v5.3.2_min.js"></script> 
<script type="text/javascript" src="layer/layer.min.js"></script>
<script type="text/javascript" src="js/H-ui.js"></script>
<script type="text/javascript" src="js/H-ui.admin.js"></script>
<script type="text/javascript">
$(".Huiform").Validform(); 
</script>
</body>
</html>